package com.zhulanhua.blogs.service;

import com.zhulanhua.blogs.domain.Branch;
import com.zhulanhua.blogs.domain.Image;
import com.zhulanhua.blogs.domain.query.AlbumQuery;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface AlbumsService {
    /**
     * 获取相册分类列表
     * */
    List<Branch> getAlbums();
    /**
     * 获取相册所有照片
     * */
    Branch<Image> getAlbumsItem(long aid);
    /**
     * 根据条件筛选相册照片
     * */
    Branch<Image> getQueryItemPage(AlbumQuery albumQuery);
    /**
     * 新增相册
     * */

    @Transactional
    boolean saveAlbums(Branch branch);
    /**
     * 修改相册
     * */
    boolean updateAlbums(Branch branch);
    /**
     * 删除相册
     *
     * @return*/
    @Transactional
    boolean deleteAlbums(long aid);
    /**
     * 删除照片
     * */
    @Transactional
    boolean deleteAlbumsItem(String imgs);
    /**
     * 相册照片上传
     * */
    @Transactional
    boolean saveAlbumsItem(int aid, String[] list);
}
